package com.vr.xuecheng.feign.client;

import com.vr.xuecheng.feign.fallback.CheckCodeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author hzh
 * @date 2025/03/30
 * 验证码服务的feign接口
 */
@FeignClient(
        name = "xuecheng-plus-checkcode-service",
        path = "/checkcode",
        fallbackFactory = CheckCodeFallbackFactory.class,
        contextId = "checkCodeClient"
)
public interface CheckCodeClient {
    @PostMapping(value = "/verify")
    Boolean verify(@RequestParam("key") String key, @RequestParam("code") String code);
}
